<?php defined('SYSPATH') or die('No direct access allowed.');
require_once(Kohana::find_file('../modules', 'sso'.DIRECTORY_SEPARATOR.'classes'.DIRECTORY_SEPARATOR.'open-sso.class'));

class Controller_SSO extends Controller{
   protected $sso;
   
   public function action_login(){
        $sso=new openSSO();
        $sso->logIn();
        $sso->updateUser($_SERVER['HTTP_UID'], $_SERVER);
   }
     
   public function action_logout(){
       $sso=new openSSO();
       $sso->logOut();
   }
}